﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace C4F.DevKit.Bluetooth.ServiceAndDeviceDiscovery
{
    /// <summary>
    /// Represents the WSAPROTOCOLCHAIN structure.
    /// </summary>
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    public class WsaProtocolChain
    {
        /// <summary>
        /// Length of the chain, in bytes.
        /// </summary>
        public int ChainLen;
        /// <summary>
        /// Array of protocol chain entries.
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray,
            SizeConst = BluetoothHelper.MAX_PROTOCOL_CHAIN)]
        public int[] ChainEntries;
    }
}
